<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>商业车险最高奖励50%</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/animate.css"> 
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/font-awesome.min.css">
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/normalize.css">
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/main.css">
    <link rel="stylesheet" href="__PUBLIC__/preorder/css/index.css">
    <link rel="stylesheet" href="__PUBLIC__/Public/preorder/css/colors/default-color.css">
    <!-- __PUBLIC__/preorder/css/bootstrap.min.css -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="__PUBLIC__/preorder/js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body class="no_scroll">
<div class="screen-loader"></div>
<div id="preload">
    <div id="preload-status"></div>
</div>
<div id="container">
    <section class="intro">
    	<div class="intro-image"></div>
		<div class="center-content">
			<div class="intro-content text-center">	
				<div class="logo">
					<h2 class="text-logo">icarforce</h2>
				</div>	
                <p class="nounce_num">50%</p>
                <p class="nounce_content">
                    商业车险最高奖励
                </p>						
				
				<i class="fa fa-clock-o fa-spin fa-4x fa-clock-spin"></i>
				<ul class="countdown">
			        <li>
			            <span class="days">00</span>
			            <p class="days-ref">天</p>
			        </li>
			        <li class="seperator"><i class="fa fa-clock-o"></i><br><i class="fa fa-clock-o"></i></li>
			        <li>
			            <span class="hours">00</span>
			            <p class="hours-ref">时</p>
			        </li>
			        <li class="seperator"><i class="fa fa-clock-o"></i><br><i class="fa fa-clock-o"></i></li>
			        <li>
			            <span class="minutes">00</span>
			            <p class="minutes-ref">分</p>
			        </li>
			        <li class="seperator"><i class="fa fa-clock-o"></i><br><i class="fa fa-clock-o"></i></li>
			        <li>
			            <span class="seconds">00</span>
			            <p class="seconds-ref">秒</p>
			        </li>
			    </ul>	
                <h1 class="intro-title">即将重磅推出</h1>						
				<!-- <div class="intro-subtitle">
                    <p>我们正在努力筹备中.</p>
                </div> -->
                <p><button class="btn btn-primary btn-lg" id="coupon">查看优惠&nbsp;<i class="fa fa-file-o"></i></button></p>
                <p><button class="btn btn-primary btn-lg" id="preorder">投保预约&nbsp;<i class="fa fa-send-o"></i></button></p>	

			</div>
		</div>
		<div class="container-bottom-content">					
            <div class="notify-after text-center" id="notify-after">                        
                <h1>订单预约</h1>
                <p>请填写您的信息后递交，我们将第一时间为您服务</p>
            </div>   
            <button class="trigger">
                <svg width="100%" height="100%" viewBox="0 0 60 60" preserveAspectRatio="none">
                    <g class="icon icon-grid">
                        <rect x="32.5" y="5.5" width="22" height="22"/>
                        <rect x="4.5" y="5.5" width="22" height="22"/>
                        <rect x="32.5" y="33.5" width="22" height="22"/>
                        <rect x="4.5" y="33.5" width="22" height="22"/>
                    </g>
                    <g class="icon icon-cross">
                        <line x1="4.5" y1="55.5" x2="54.953" y2="5.046"/>
                        <line x1="54.953" y1="55.5" x2="4.5" y2="5.047"/>
                    </g>
                </svg>
                <span>View content</span>
            </button>                                            
		</div> 		
	</section>

	<section class="content-wrapper" id="content1">
		<div class="content-div">
			<div class="container">
			<form class="form-horizontal" id="preorder_frm">
              <div class="form-group">
                <label for="exampleInputEmail1" class="control-label">所属地区(仅限浙江地区)</label>
                <div class="">
                    <select class="form-control" name="region" id="region">
                      <option>杭州市</option>
                      <option>宁波市</option>
                      <option>温州市</option>
                      <option>嘉兴市</option>
                      <option>湖州市</option>
                      <option>绍兴市</option>
                      <option>金华市</option>
                      <option>衢州市</option>
                      <option>舟山市</option>
                      <option>台州市</option>
                      <option>丽水市</option>
                    </select>
                </div>
              </div>
              <div class="form-group">
                <label for="carno" class="control-label">车牌号码</label>
                <div class="input-prepend">
                    <span class="add-on">浙</span>
                    <input type="text" name="carno" class="form-control has_left_pad" id="carno" placeholder="车牌号码">
                </div>
              </div>
              <div class="form-group">
                <label for="username" class="control-label">车主姓名</label>
                <div class=""><input type="text" name="username" class="form-control" id="username" placeholder="车主姓名"></div>
              </div>
              <div class="form-group">
                <label for="exampleInputEmail1" class="control-label">联系电话</label>
                <div class=""><input type="tel" name="mobile" class="form-control" id="mobile" placeholder="联系电话"></div>
              </div>
               <div class="form-group">
                <label for="exampleInputEmail1" class="control-label">车险到期日</label>
                <div class=""><input type="date" name="enddate" class="form-control" id="enddate" placeholder="车险到期日"></div>
              </div>
              <div class="form-group">
                <div class="">
                  <button type="submit" class="btn btn-default">递交预约</button>
                </div>
              </div>
              {__TOKEN__}
            </form>
			</div>
		</div>
        <footer id="footer" class="content-div">
        	<div class="container">
        		<div class="row">
        			<div class="col-sm-12">
        				<div class="copyright">
			        		<p class="text-center">Copyright &copy; 2015. All Rights Reserved Icarforce</p>
			        	</div>
        			</div>
        		</div>
        	</div>		        	
        </footer>
	</section> 
    <section class="content-wrapper hide2" id="content2">
        <img src="__PUBLIC__/preorder/img/pro.png" alt="" class="con_img">
    </section>
</div> 
<script src="__PUBLIC__/preorder/js/vendor/jquery-1.11.2.min.js"></script>
<script src="__PUBLIC__/preorder/js/modernizr.custom.js"></script>
<script src="__PUBLIC__/preorder/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/preorder/js/classie.js"></script>       
<script src="__PUBLIC__/preorder/js/jquery.downCount.js"></script>
<script src="__PUBLIC__/preorder/js/jquery.ajaxchimp.min.js"></script>
<script src="__PUBLIC__/preorder/js/form-contact.js"></script>
<script src="__PUBLIC__/preorder/js/jquery.nicescroll.3.5.4.js"></script>
<script src="__PUBLIC__/preorder/js/plugins.js"></script>
<script src="__PUBLIC__/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/preorder/js/main.js"></script>
<script>
$().ready(function() {
    var validator = $("#preorder_frm").validate({
        rules:{
            carno:{
                required:true,
                minlength:6,
                maxlength:6
            },
            username:{
                required:true,
                minlength:2
            },
            mobile:{
                required:true,
                mobile: true
            }
        },
        messages:{
            carno:{
                required:'请填写车牌号码',
                minlength:'请填入正确的车牌号码',
                maxlength:'请填入正确的车牌号码'
            },
            username:{
                required:'请填写车主姓名',
                minlength:'请填写车主姓名'
            },
            mobile:{
                required:'请填写联系电话'
            }
        },
        submitHandler:function(form){
           $.ajax({
               type:'POST',
               url:"__URL__/save",
               data:$('#preorder_frm').serialize(),
               success:function(result){
                 if(result.status){
                     alert('保存成功');
                 }else{
                     alert(result.info);
                 }
               },
               error:function(data){
                   alert("error:"+data);
               }
           });
        }    
    });
});
</script>
<script type="text/javascript">
    jQuery.validator.addMethod("mobile", function(value, element) {
        var length = value.length;
        var mobile =  /^(((13[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/
        return this.optional(element) || (length == 11 && mobile.test(value));
    }, "手机号码格式错误");   

</script>
<div id="warning"></div>
</body>
</html>
